package com.luych.toolbox.common.feign.view.data.service;

import com.luych.toolbox.common.enums.DataTransporterHistoryTableStatus;
import com.luych.toolbox.common.feign.FeignView;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("数据同步历史详情")
public class DataTransporterHistoryTableView extends FeignView {

    @ApiModelProperty("状态")
    private DataTransporterHistoryTableStatus status;
    @ApiModelProperty("来源表名称")
    private String tableFrom;
    @ApiModelProperty("目标表名称")
    private String tableTo;
    @ApiModelProperty("来源表数据行数")
    private Long countFrom;
    @ApiModelProperty("目标表数据行数")
    private Long countTo;
    @ApiModelProperty("数据同步行数")
    private Long countTransporter;

    public String getStatusValue() {
        return status == null ? null : status.getValue();
    }

    public DataTransporterHistoryTableStatus getStatus() {
        return status;
    }

    public void setStatus(DataTransporterHistoryTableStatus status) {
        this.status = status;
    }

    public String getTableFrom() {
        return tableFrom;
    }

    public void setTableFrom(String tableFrom) {
        this.tableFrom = tableFrom;
    }

    public String getTableTo() {
        return tableTo;
    }

    public void setTableTo(String tableTo) {
        this.tableTo = tableTo;
    }

    public Long getCountFrom() {
        return countFrom;
    }

    public void setCountFrom(Long countFrom) {
        this.countFrom = countFrom;
    }

    public Long getCountTo() {
        return countTo;
    }

    public void setCountTo(Long countTo) {
        this.countTo = countTo;
    }

    public Long getCountTransporter() {
        return countTransporter;
    }

    public void setCountTransporter(Long countTransporter) {
        this.countTransporter = countTransporter;
    }
}